package com.bjb.vr.common.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bjb.vr.common.ao.UmsUserRoleAo;
import com.bjb.vr.common.dto.UmsUserRole;
import com.bjb.vr.common.mapper.UmsUserRoleMapper;
import com.bjb.vr.common.vo.UmsUserRoleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin
 * @description 针对表【ums_user_role(用户和角色关联表)】的数据库操作Service实现
 * @createDate 2022-04-29 11:28:38
 */
@Service
public class UmsUserRoleService extends ServiceImpl<UmsUserRoleMapper, UmsUserRole> {

    @Autowired
    private UmsUserRoleMapper umsUserRoleMapper;

    /**
     * 查询用户信息
     *
     * @param umsUserRoleAo
     * @return
     */
    public List<UmsUserRoleVo> queryUserRoleInfo(UmsUserRoleAo umsUserRoleAo) {
        return umsUserRoleMapper.selectByCondition(umsUserRoleAo.getUserName(), umsUserRoleAo.getStatus(), umsUserRoleAo.getRoleId());
    }
}




